package top.bug.blog.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.bug.blog.common.BasePO;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_operation_log")
@ApiModel("后台操作日志实体")
public class SysOperationLog extends BasePO {
    @ApiModelProperty("模块名称")
    @TableField("module")
    private String module;

    @ApiModelProperty("操作描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("请求URL")
    @TableField("request_url")
    private String requestUrl;

    @ApiModelProperty("请求方法")
    @TableField("request_method")
    private String requestMethod;

    @ApiModelProperty("请求参数")
    @TableField("request_params")
    private String requestParams;

    @ApiModelProperty("响应结果")
    @TableField("response_result")
    private String responseResult;

    @ApiModelProperty("操作状态(0失败 1成功)")
    @TableField("status")
    private String status;

    @ApiModelProperty("错误信息")
    @TableField("error_message")
    private String errorMessage;

    @ApiModelProperty("客户端IP")
    @TableField("ip_address")
    private String ipAddress;

    @ApiModelProperty("执行耗时(ms)")
    @TableField("execute_time")
    private Long executeTime;
}